<!DOCTYPE html>
<html lang="en">
<head>

	<meta charset="utf-8">
	<title>Login Page</title>
	<?php $this->load->view('generic/loadablesSnippet');?>
	
	<script>
	$(function() {
		$( "#login" ).accordion({
			autoHeight: false,
			collapsible: true
		});
	});
	</script>
	
	<script>
	function OnSubmitForm(){
		if(document.pressed == "Login"){
			if(document.adminlogin.username.value!=""&&document.adminlogin.password.value!=""){
				document.adminlogin.action ="<?php echo base_url();?>index.php/loginPageController/validate_entry/";
				return true;
			}else{
				alert("Please fill out all fields!");
				return false;
			}
		}
	}
	</script>
	
</head>

<body>

<div class="demo">

	<div id="header"><h1><sfol>A</sfol>CCI e<sfol>X</sfol>treme <sfol>I</sfol>nformation <sfol>S</sfol>ystem</h1></div>

	<div id="login">
	
		<h3><a href="#section1">Administrator's Login</a></h3>
		<form name="adminlogin" method="post" onSubmit="return OnSubmitForm()">
			<table>
				<tr><td>Username:</td><td><input type="text" name="username"/></td></tr>
				<tr><td>Password:</td><td><input type="password" name="password"/></td></tr>
			</table>
				<br/><center><input type="submit" value="Login" class="shortobject" onClick="document.pressed=this.value"/></center>
		</form>
		
	</div><!-- End login -->
	
</div><!-- End demo -->

</body>
</html>
